function reload(){
    window.location.reload();
}
function help(msg){
    alert('欢迎使用'+msg);
}

function to(url){
    window.location.href=url;
}
function back(){
    history.go(-1);
}
function save(){
    alert('保存成功！');
    document.forms[0].submit();
}
function add(url){
    alert('新建成功！');
    to(url);
}
function delByurl(msg,url){
        alert("成功?")
        to(url);

}
function setCurTime(oid){
    var oCtl = document.getElementById(oid);
    var now=new Date();
    var year=now.getUTCFullYear();
    var month=now.getMonth()+1;
    var day=now.getDate();
    var hours=now.getHours();
    var minutes=now.getMinutes();
    var seconds=now.getSeconds();
    var timeString = year+"-"+month+"-"+day+" "+hours+":"+minutes+":"+seconds;
    oCtl.value = timeString;
}